package com.yunbao.hujin.zqqgetuidemo.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

import com.igexin.sdk.GTServiceManager;

/**
 * Created by Administrator on 2017/11/27.
 */

public class MyGetuiService extends Service {

    @Override
    public void onCreate() {
        super.onCreate();
        GTServiceManager.getInstance().onCreate(this);
        Log.e("MyGetuiSer.", "onCreate");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        super.onStartCommand(intent, flags, startId);
        Log.e("MyGetuiSer.2", "onStartCommand");
        Log.e("MyGetuiSer.22:", flags + "///" + startId);

        return GTServiceManager.getInstance().onStartCommand(this, intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        Log.e("MyGetuiSer.3", "onBind");

        return GTServiceManager.getInstance().onBind(intent);
    }


    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e("MyGetuiSer.4", "onDestroy");

        GTServiceManager.getInstance().onDestroy();
    }


    @Override
    public void onLowMemory() {
        super.onLowMemory();
        GTServiceManager.getInstance().onLowMemory();
        Log.e("MyGetuiSer.5", "onLowMemory");

    }
}
